package club.xinghe.util;

/**
 * 分页工具类
 * 刘艺广
 */
public class PageUtil {


    public static final int PAGE_SIZE = 10;

    /**
     *
     * @param count
     * @param pageSize
     * @return
     */
    public static int getTotalPages(int count, int pageSize) {
        return count % pageSize == 0 ? count / pageSize : ((count / pageSize) + 1);
    }
}
